package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.UserTrainingHistoryDao;
import com.suke.czx.modules.examstack.exam.entity.UserTrainingHistoryEntity;
import com.suke.czx.modules.examstack.exam.service.UserTrainingHistoryService;



@Service("userTrainingHistoryService")
public class UserTrainingHistoryServiceImpl implements UserTrainingHistoryService {
	@Autowired
	private UserTrainingHistoryDao userTrainingHistoryDao;
	
	@Override
	public UserTrainingHistoryEntity queryObject(Integer sectionId){
		return userTrainingHistoryDao.queryObject(sectionId);
	}
	
	@Override
	public List<UserTrainingHistoryEntity> queryList(Map<String, Object> map){
		return userTrainingHistoryDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userTrainingHistoryDao.queryTotal(map);
	}
	
	@Override
	public void save(UserTrainingHistoryEntity userTrainingHistory){
		userTrainingHistoryDao.save(userTrainingHistory);
	}
	
	@Override
	public void update(UserTrainingHistoryEntity userTrainingHistory){
		userTrainingHistoryDao.update(userTrainingHistory);
	}
	
	@Override
	public void delete(Integer sectionId){
		userTrainingHistoryDao.delete(sectionId);
	}
	
	@Override
	public void deleteBatch(Integer[] sectionIds){
		userTrainingHistoryDao.deleteBatch(sectionIds);
	}
	
}
